package com.acmen.demo.dto.cmd;

import com.acmen.demo.enums.SexEnum;
import com.acmen.easyapi.annotation.ReqParam;
import com.acmen.easyapi.constant.ValidateExp;
import java.util.List;

/**
 *
 * @author acmen
 */
public class UserAdd{

    /**
     * 部门ID
     */
    @ReqParam(label = "部门ID")
    private Long deptId;

    /**
     * 用户账号
     */
    @ReqParam(label = "用户账号",example = "zhangsang",required = true)
    private String account;

    /**
     * 用户名称
     */
    @ReqParam(label = "用户名称",example = "张三",required = true)
    private String name;

    /**
     * 手机号码
     */
    @ReqParam(label = "手机号码",required = true,validateExp = ValidateExp.VALIDATE_EXP_MOBILE)
    private String mobile;

    /**
     * 用户邮箱
     */
    @ReqParam(label = "用户邮箱",validateExp = ValidateExp.VALIDATE_EXP_EMAIL)
    private String email;

    /**
     * 身份证号
     */
    @ReqParam(label = "身份证号",validateExp = ValidateExp.VALIDATE_EXP_IDNO)
    private String idNo;


    @ReqParam(label = "性别", enumClass = SexEnum.class)
    private String sex;
    @ReqParam(label = "年龄", required = true, example = "10", validateExp = "num(1,120)")
    private Integer age;
    /**
     * 用户头像
     */
    @ReqParam(label = "用户头像",example = "http://azexun.com/xxx.jpg")
    private String avatar;

    /**
     * 密码
     */
    @ReqParam(label = "密码")
    private String password;

    @ReqParam(label = "猫列表")
    private List<Cat> cats;

    @ReqParam(label = "房子")
    private House house;


    public Long getDeptId() {
        return deptId;
    }

    public UserAdd setDeptId(Long deptId) {
        this.deptId = deptId;
        return this;
    }

    public String getAccount() {
        return account;
    }

    public UserAdd setAccount(String account) {
        this.account = account;
        return this;
    }

    public String getName() {
        return name;
    }

    public UserAdd setName(String name) {
        this.name = name;
        return this;
    }

    public String getMobile() {
        return mobile;
    }

    public UserAdd setMobile(String mobile) {
        this.mobile = mobile;
        return this;
    }

    public String getEmail() {
        return email;
    }

    public UserAdd setEmail(String email) {
        this.email = email;
        return this;
    }

    public String getIdNo() {
        return idNo;
    }

    public UserAdd setIdNo(String idNo) {
        this.idNo = idNo;
        return this;
    }

    public String getSex() {
        return sex;
    }

    public UserAdd setSex(String sex) {
        this.sex = sex;
        return this;
    }

    public String getAvatar() {
        return avatar;
    }

    public UserAdd setAvatar(String avatar) {
        this.avatar = avatar;
        return this;
    }

    public String getPassword() {
        return password;
    }

    public UserAdd setPassword(String password) {
        this.password = password;
        return this;
    }

    public List<Cat> getCats() {
        return cats;
    }

    public UserAdd setCats(List<Cat> cats) {
        this.cats = cats;
        return this;
    }

    public House getHouse() {
        return house;
    }

    public UserAdd setHouse(House house) {
        this.house = house;
        return this;
    }

    public Integer getAge() {
        return age;
    }

    public UserAdd setAge(Integer age) {
        this.age = age;
        return this;
    }
}
